﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using NewDDSys.Entity;
using NewDDSys.Factory;
using NewDDSys.IBLL;
using System.Data;

namespace NewDDSys.BLL
{
    public class YhBLL:IYhBLL
    {
        public int AddYh(YhInfo yh)
        {
            return DALFactory.CreateYhDAL().AddYh(yh);
        }
        public int UpdateYh(string num, string danwei, string bumen, string gang, string xm, string pass)
        {
            return DALFactory.CreateYhDAL().UpdateYh(num, danwei, bumen, gang, xm, pass);
        }
        public int UpdatePass(string danwei, string bumen, string gang, string xm, string Npass)
        {
            return DALFactory.CreateYhDAL().UpdatePass(danwei, bumen, gang, xm, Npass);
        }
        public int Del(string num)
        {
            return DALFactory.CreateYhDAL().Del(num);
        }
        public DataSet Select(string num)
        {
            return DALFactory.CreateYhDAL().Select(num);
        }
        public DataSet SelectAll()
        {
            return DALFactory.CreateYhDAL().SelectAll();
        }
        public bool IsHave(string danwei, string bumen, string gang, string xm, string pass)
        {
            return DALFactory.CreateYhDAL().IsHave(danwei, bumen, gang, xm, pass);
        }
        public DataSet NameByDB(string danwei, string bumen, string gang)
        {
            return DALFactory.CreateYhDAL().NameByDB(danwei, bumen, gang);
        }
        public DataSet BMByDW(string danwei)
        {
            return DALFactory.CreateYhDAL().BMByDW(danwei);
        }
        public DataSet GByDB(string danwei, string bumen)
        {
            return DALFactory.CreateYhDAL().GByDB(danwei, bumen);
        }
        public string AUTOID()
        {
            return DALFactory.CreateYhDAL().AUTOID();
        }
        public int UpdateBanzu(string num, string banzu)
        {
            return DALFactory.CreateYhDAL().UpdateBanzu(num, banzu);
        }
    }
}
